import {
    defineStore
} from 'pinia'

export const useShoppingCartInfo = defineStore('shoppingCart', {
    state: () => {
        return {
            shoppingCartIds: []
        }
    },
    persist: {
        enabled: true,
        strategies: [{
            storage: sessionStorage,
            paths: ['shoppingCartIds'],
            key: "shoppingCartIds"
        }],
    },
})